package com.press.mapper;

import com.press.bean.ContentBean;
import com.press.bean.MappingBean;
import com.press.bean.TaxonomyBean;

import java.util.List;
import java.util.Map;

/**
 * Created by haocongshun on 2016/10/3.
 */
public interface ContentMapper {
    List<ContentBean> getContent();
    List<ContentBean> getBinContent();;
    int addContent(Map map);
    int addContentAndType(Map map);
    int moveToBin(Map map);
    int moveToNoBin(Map map);
    String getBinCount();
    String getNoBinCount();
    String getDraftCount();
    int deteleContentAndType(int content_id);
    int deleteContent(int content_id);
    List<MappingBean> getMapping();
    List<TaxonomyBean> getAllType();
    ContentBean getContentDetail(String content_id);
    List<TaxonomyBean> getTypeById(String content_id);
    int deleteMapping(String content_id);
    int updateContent(Map map);
    int draftContent(Map map);
    List<ContentBean> getDraftContent();
    int updateContentToNoBin(Map map);
    List<ContentBean> getSearchBinList(String content_title);
    List<ContentBean> getSearchNoBinList(String content_title);
    List<ContentBean> getSearchDraftList(String content_title);
    List<ContentBean> getFenYeList(String page);
}
